import axios from '../index';

// 请求函数
export function login(data) {
    return axios({
        method: 'post',
        url: '/login/LoginPcD',
        data: data
    });
}


// 进度对比
export function count_PCComparison(data) {
    return axios({
        method: 'post',
        url: '/count_PC/Comparison',
        data: data
    });
}




// 滞后分析
export function LagReasonsCountLagReasons(data) {
    return axios({
        method: 'post',
        url: '/LagReasons/CountLagReasons',
        data: data
    });
}


// LagReasons/CountLagReasonsAll
export function LagReasonsCountLagReasonsAll(data) {
    return axios({
        method: 'post',
        url: '/LagReasons/CountLagReasonsAll',
        data: data
    });
}


// 
export function count_PCCountXY(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountXY',
        data: data
    });
}

export function MonitoringCountMonitoring(data) {
    return axios({
        method: 'post',
        url: '/Monitoring/CountMonitoring',
        data: data
    });
}


// 产值 
// /ValueRecord/ValueRecordCount
// 大屏_施工产值

export function ValueRecordValueRecordCount(data) {
    return axios({
        method: 'post',
        url: '/ValueRecord/ValueRecordCount',
        data: data
    });
}

// {"section_id":6}


// 大屏_产值分析

export function ValueRecordselectValueRecord(data) {
    return axios({
        method: 'post',
        url: '/ValueRecord/selectValueRecord',
        data: data
    });
}

// 里程碑


export function PlanMilestoneselectPlanMilestone(data) {
    return axios({
        method: 'post',
        url: '/PlanMilestone/selectPlanMilestone',
        data: data
    });
}

// 总产值
export function ValueZSumValue(data) {
    return axios({
        method: 'post',
        url: '/ValueZ/SumValue',
        data: data
    });
}


// 隐患分析


export function count_PCRiskshowByMonth(data) {
    return axios({
        method: 'post',
        url: '/count_PC/RiskshowByMonth',
        data: data
    });
}
// 整改情况分析


export function count_AppCountRiskshow(data) {
    return axios({
        method: 'post',
        url: '/count_App/CountRiskshow',
        data: data
    });
}

export function qualityshowSelect_Qualityshow_Month(data) {
    return axios({
        method: 'post',
        url: '/qualityshow/Select_Qualityshow_Month',
        data: data
    });
}



export function count_AppCountQualityshow(data) {
    return axios({
        method: 'post',
        url: '/count_App/CountQualityshow',
        data: data
    });
}


export function riskshowFindRiskshowByNew(data) {
    return axios({
        method: 'post',
        url: '/riskshow/FindRiskshowByNew',
        data: data
    });
}

export function count_AppCountQualityshowByRiskId(data) {
    return axios({
        method: 'post',
        url: '/count_App/CountQualityshowByRiskId',
        data: data
    });
}



export function count_AppCountRiskshowByRiskId(data) {
    return axios({
        method: 'post',
        url: '/count_App/CountRiskshowByRiskId',
        data: data
    });
}


/// ValueZ/UpdateValue     // 



// /count_PC/Comparison


export function count_AppCountRiskshowBySubId(data) {
    return axios({
        method: 'post',
        url: '/count_App/CountRiskshowBySubId',
        data: data
    });
}




export function count_AppCountQualityshowBySubId(data) {
    return axios({
        method: 'post',
        url: '/count_App/CountQualityshowBySubId',
        data: data
    });
}
export function riskshowSelect_Riskshow_Month(data) {
    return axios({
        method: 'post',
        url: '/riskshow/Select_Riskshow_Month',
        data: data
    });
}
export function count_PCCountRiskshowByProcessId(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountRiskshowByProcessId',
        data: data
    });
}


export function count_PCCountQualityshowByProcessId(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountQualityshowByProcessId',
        data: data
    });
}
export function count_PCQualityshowByMonth(data) {
    return axios({
        method: 'post',
        url: '/count_PC/QualityshowByMonth',
        data: data
    });
}

export function qualityshowFindQualityshowByNew(data) {
    return axios({
        method: 'post',
        url: '/qualityshow/FindQualityshowByNew',
        data: data
    });
}

export function EnvironmentHJFX(data) {
    return axios({
        method: 'post',
        url: '/Environment/HJFX',
        data: data
    });
}


export function EnvironmentFindEnvironment(data) {
    return axios({
        method: 'post',
        url: '/Environment/FindEnvironment',
        data: data
    });
}


export function count_PCCountByStaffAge(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountByStaffAge',
        data: data
    });
}
export function count_PCCountByType(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountByType',
        data: data
    });
}
export function count_PCCountByStaffProvince(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountByStaffProvince',
        data: data
    });
}

export function count_PCCountByWorktype(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountByWorktype',
        data: data
    });
}
export function count_PCStaffQs(data) {
    return axios({
        method: 'post',
        url: '/count_PC/StaffQs',
        data: data
    });
}
export function count_PCCountBySub(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountBySub',
        data: data
    });
}
export function count_PCCountByStaffNation(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountByStaffNation',
        data: data
    });
}

export function MonitoringFindMonitoringByPage(data) {
    return axios({
        method: 'post',
        url: '/Monitoring/FindMonitoringByPage',
        data: data
    });
}

export function JkTokenFindJkToken(data) {
    return axios({
        method: 'post',
        url: '/JkToken/FindJkToken',
        data: data
    });
}

export function QualityIdentifyFindQualityIdentify(data) {
    return axios({
        method: 'post',
        url: '/QualityIdentify/FindQualityIdentify',
        data: data
    });
}


export function RiskIdentifyFindRiskIdentify(data) {
    return axios({
        method: 'post',
        url: '/RiskIdentify/FindRiskIdentify',
        data: data
    });
}
// 质量卡控
export function count_PCCountRiskshowByZLKK(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountRiskshowByZLKK',
        data: data
    });
}
// 风险源辨识
export function count_PCCountRiskshowByFXYBS(data) {
    return axios({
        method: 'post',
        url: '/count_PC/CountRiskshowByFXYBS  ',
        data: data
    });
}




export default {
    count_PCCountRiskshowByZLKK,
    count_PCCountRiskshowByFXYBS,
    //////////////////////          登录
    login,
    count_PCComparison,  // 进度对比
    LagReasonsCountLagReasons,  // 滞后分析
    LagReasonsCountLagReasonsAll, //之后总数
    count_PCCountXY,   //人员

    ValueRecordValueRecordCount,// 产值

    PlanMilestoneselectPlanMilestone, // 里程碑
    ValueZSumValue,// 总产值
    ValueRecordselectValueRecord,// 产值分析
    MonitoringCountMonitoring,//监控
    count_PCRiskshowByMonth,

    count_AppCountRiskshow,   // 整改情况分析
    count_AppCountQualityshow,// 整改情况分析

    // 隐患中间的
    riskshowFindRiskshowByNew,


    count_AppCountQualityshowByRiskId, // 分析
    count_AppCountRiskshowByRiskId,//隐患
    count_AppCountRiskshowBySubId,


    riskshowSelect_Riskshow_Month,
    qualityshowSelect_Qualityshow_Month,
    count_PCCountRiskshowByProcessId,
    count_AppCountQualityshowBySubId,
    count_PCCountQualityshowByProcessId,
    count_PCQualityshowByMonth,
    qualityshowFindQualityshowByNew,
    EnvironmentHJFX,
    EnvironmentFindEnvironment,
    count_PCCountByStaffAge,

    QualityIdentifyFindQualityIdentify,


    count_PCCountByStaffProvince,   //  区域分析
    count_PCCountByWorktype, //工种

    count_PCCountBySub,// 分包单位
    count_PCCountByType,
    count_PCStaffQs,
    count_PCCountByStaffNation,// 民族分布分析

    MonitoringFindMonitoringByPage,
    JkTokenFindJkToken,
    RiskIdentifyFindRiskIdentify
};